package com.eurabia.eggchat.service;

import java.util.List;
import com.github.pagehelper.Page;
import com.eurabia.eggchat.pojo.SysEggchatRolePermission;
import com.eurabia.eggchat.pojo.form.SysEggchatRolePermissionForm;
import com.eurabia.eggchat.pojo.query.SysEggchatRolePermissionQuery;

/**
 * SysEggchatRolePermissionService 
 */
public interface SysEggchatRolePermissionService {

    /**
     * 查询 SysEggchatRolePermission
     */
    List<SysEggchatRolePermission> find(final SysEggchatRolePermissionQuery query);
    
    /**
     * 分页查询 SysEggchatRolePermission
     */
    Page<SysEggchatRolePermission> findByPage(final SysEggchatRolePermissionQuery query);

    /**
     * 通过id得到一个 SysEggchatRolePermission
     */
    SysEggchatRolePermission get(final String id);
    
    /**
     * 新增 SysEggchatRolePermission
     */
    void add(final SysEggchatRolePermissionForm form);

    /**
     * 修改 SysEggchatRolePermission
     */
    int update(final SysEggchatRolePermissionForm form);
    
    /**
     * 删除一个 SysEggchatRolePermission
     */
    int delete(final String id);
	
	/**
     * 修改是否可用
     */
    int changeEnabled(final String id, final Integer enabled);
}